﻿using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using System.Windows.Input;

namespace 小玩意.ViewModel
{
    partial class MainWindowViewModel : ObservableObject
    {


        public ICommand s7command { get; }
        public ICommand tCPcommand { get; }
        public ICommand rS485command { get; }
        public ICommand rs485TCPcommand { get; }
        ErrorViewModel errorViewModel = new ErrorViewModel();
        public MainWindowViewModel()
        {
            s7command = new RelayCommand(CilikeButtonS7);
        }
        //[ObservableProperty]
        //private string textbolck = "2123";
        //public string TextBolck { get => textbolck;   set => SetProperty(ref textbolck, value); }






        private void CilikeButtonS7()
        {
            S7Comm s7Comm = S7Comm.GetWindows() ;
            s7Comm.Show();

        }
    }
}
